package org.cs.mgr.before.service.impl;

import java.util.List;

import org.cs.core.service.impl.BaseService;
import org.cs.mgr.before.dao.impl.GoodsDao;
import org.cs.mgr.before.model.Goods;
import org.cs.mgr.before.service.IGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("GoodsService")
public class GoodsService extends BaseService<Goods> implements IGoodsService{

	@Autowired
	GoodsDao goodsDao;

	@Override
	public Goods getGoodsOne(String id) {
		// TODO Auto-generated method stub
		return this.goodsDao.findById(id);
	}

	@Override
	public List<Goods> getGoodList() {
		return this.goodsDao.getGoodsList();         //查询goods表
	}

	@Override
	public Goods getGood(String id) {               //通过id查goods表
		Goods good= goodsDao.getGood(id);
		return good;
	}
	
}
